// import Router from 'koa-router'
// import config from '../config'
// import reply from '../wechat/reply'
// import wechatMiddle from '../wechat-lib/wechatMiddle'
// import {signature, redirect, oauth} from '../controllers/wechat'
import Route from '../decorator/route'
import { resolve } from 'path'
const r = path => resolve(__dirname, path)

export const router = app => {
  const apiPath = r('../api')
  const route = new Route(app , apiPath)

  route.init()
}
